home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / masdir54.arj / SDLPARMS.BAT < prev    next >
DOS Batch File  |  1992-11-23  |  10KB  |  220 lines

  1. ECHO Off
  2. IF NOT . == .%3 GOTO PARMSOK
  3. ECHO Please start the setup program by running SDLSETUP.
  4. GOTO QUIT
  5. :PARMSOK
  6. ECHO * * *
  7. ECHO The first 5 selections are for some toggles: 
  8. ECHO SDL has several options which can be "toggled" by command line
  9. ECHO switches.  A toggle has only two possibilities, and the switch (option)
  10. ECHO changes a toggle from its current setting to the opposite setting.
  11. :MENU1
  12. ECHO * * *
  13. Echo  1 C Cls  (Clear the screen)
  14. Echo  2 M More (or Menu - pause at the end of each screen)
  15. Echo  3 F Fre  (Free space left on the disk)
  16. Echo  4 H Hdr  (Turn title lines off or on)
  17. Echo  5 A All  (Exclude "<DIR>"s and hidden files)
  18. ECHO This section also includes defaults for:
  19. Echo  6 S SORTing   (Field, Reverse, Width)
  20. Echo  7  COLumns   (2,4,6)
  21. Echo  8  Disk size (3.5,5.25)
  22. Echo  9  Cluster size (0.5 1 2 4 8 Kb)
  23. Echo  After each selection you will return to the menu.
  24. Echo  Press Return or Esc to skip this section . . .
  25. sdl_get c "Select by number: (1,2,3,4,5,6,7,8,9,cr) " 123456789CMFHAS~}
  26. IF ERRORLEVEL 125 SDLNOTOG %1 %2 %3
  27. if NOT %GET% == 1 goto SELECT%GET%
  28. :SELECT1
  29. :SELECTC
  30. sdl_get b
  31. ECHO * * *
  32. ECHO You may set the clear screen (Cls) default to Off or On.
  33. ECHO When it is ON the screen is cleared before and after each display.
  34. ECHO When it is OFF the screen just scrolls and is a bit slower.
  35. Echo Whichever default you choose, the /C option will toggle it.
  36. ECHO * * 
  37. sdl_get N "Do you want Cls ON to be the default mode (Y,n,cr)? "
  38. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  39. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 22F 01>>SDLSETUP.TXT
  40. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 22F 00>>SDLSETUP.TXT
  41. GOTO MENU1
  42. :SELECT2
  43. :SELECTM
  44. sdl_get b
  45. ECHO * * *
  46. ECHO SDL Version 5 uses "More" instead of "Pause" to stop and show
  47. ECHO a Menu at the end of each screen display.  This was changed from
  48. ECHO earlier versions to reserve the /P option for Printing (Prn).
  49. ECHO (Later you will be given the option to use /P for Pause if you prefer).
  50. ECHO You may set the More/Pause default to Off or On.
  51. Echo Whichever default you choose, the /M option will toggle it.
  52. ECHO * * *
  53. sdl_get N "Do you want pausing for More to be the default mode (Y,n,cr)? "
  54. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  55. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 230 01>>SDLSETUP.TXT
  56. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 230 00>>SDLSETUP.TXT
  57. GOTO MENU1
  58. :SELECT3
  59. :SELECTF
  60. sdl_get b
  61. ECHO * * *
  62. ECHO SDL Version 5 has a /F option for showing Free Space (Fre) on
  63. ECHO a disk.  On a hard disk SDL is much faster if it doesn't have to
  64. ECHO wait for DOS to get the Free Space.  On a floppy disk the amount
  65. ECHO of free space may be of interest, but you can display it by
  66. ECHO pressing the F key at the end of the display.  You may, however,
  67. ECHO have the Free Space displayed automatically as the default.
  68. ECHO Whichever you choose, the /F option will toggle it.
  69. ECHO * * *
  70. sdl_get N "Do you want Free Space ON to be the default? (y,N,cr)? "
  71. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  72. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 231 1>>SDLSETUP.TXT
  73. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 231 0>>SDLSETUP.TXT
  74. GOTO MENU1
  75. :SELECT4
  76. :SELECTH
  77. sdl_get b
  78. ECHO * * *
  79. ECHO You may set the Header (Hdr) default to On or Off.
  80. ECHO When OFF it suppresses the first two lines of titles to leave
  81. ECHO more space on the screen for file names.
  82. Echo Whichever you choose, the /H option will toggle it.
  83. ECHO (Whether you set it Off or On, you will be given a chance
  84. ECHO to enter your default titles later.)
  85. ECHO * * *
  86. sdl_get N "Do you want the full Hdr (ON) to be the default (Y,n,cr)? "
  87. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  88. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 0232 15>>SDLSETUP.TXT
  89. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 0232 13>>SDLSETUP.TXT
  90. GOTO MENU1
  91. :SELECT5
  92. :SELECTA
  93. sdl_get b
  94. ECHO * * *
  95. ECHO The /A for ALL option toggles the display of hidden files and directories.
  96. ECHO If you select ALL as the default, SDL will automatically include
  97. ECHO Hidden files and "<DIR>"s (subdirectories) in the directory display.
  98. Echo Whichever default you choose, the /A option will toggle it.
  99. ECHO * * *
  100. sdl_get N "Do you want All to be the default mode (Y,n,cr)? "
  101. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  102. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 233 00>>SDLSETUP.TXT
  103. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 233 16>>SDLSETUP.TXT
  104. GOTO MENU1
  105. :SELECT6
  106. :SELECTS
  107. sdl_get B
  108. ECHO * * *
  109. ECHO Reminder:
  110. ECHO If you do not want to change a selection just press return (cr),
  111. ECHO Press Esc to skip this section completely and go to the next menu.
  112. ECHO * * *
  113. ECHO The default SORT order (field) can be Name, eXtension, Date, or
  114. ECHO the Original dOs order which is unsorted.
  115. ECHO (Note that the letters above in CAPS are the option keys.)
  116. ECHO * * *
  117. sdl_get C "Press the letter for the SORT order you prefer (N,x,d,o,cr): " NXDO~}
  118. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  119. SET GET=
  120. IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET GET=58
  121. IF ERRORLEVEL 79 IF NOT ERRORLEVEL 80 SET GET=4F
  122. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET GET=4E
  123. IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET GET=44
  124. IF NOT ERRORLEVEL 125 ECHO E 022E %GET%>>SDLSETUP.TXT
  125. ECHO * * *
  126. ECHO The sorting of file names can be in ascending order or in reverse
  127. ECHO order.  This applies to the N,X,S, or D sort selections, and it
  128. ECHO is controlled by the /- toggle or the - selection from the menu.  
  129. Echo For example, SDL /- will reverse the order for the default sort field 
  130. Echo that you have selected.  Also, SDL /S- or SDL /S /- would select the 
  131. Echo S(ize) field for sorting and toggle the order in which to sort it.  
  132. Echo * * *
  133. Echo You may set default sort orders for each of the four sort fields.
  134. Echo (These switches are processed from left to right, so that SDL /- /S 
  135. Echo or SDL /-S would not produce the same result as the above example.)
  136. :ASorDS
  137. ECHO * * *
  138. Echo Press the letter for the sort order you want to change, CR to 
  139. Echo return to the menu, Esc for the next menu.
  140. Echo     N - Change N(ame) sort order - original default is Ascending.
  141. Echo     X - Change X(tension) sort order - original default is Ascending.
  142. Echo     D - Change D(ate) sort order - original default is Descending.
  143. Echo     S - Change S(ize) sort order - original default is Descending.
  144. ECHO * * *
  145. sdl_get C "Press the letter for the SORT order to change (N,x,d,s,cr): " NXDS~}
  146. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  147. if errorlevel 125 goto SELECTw
  148. IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET SDL=C
  149. IF ERRORLEVEL 83 IF NOT ERRORLEVEL 84 SET SDL=D
  150. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET SDL=E
  151. IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET SDL=B
  152. Echo You have selected %GET%
  153. sdl_get C "Press A for Ascending, - for descending (A,-,cr): " A-~}
  154. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  155. IF ERRORLEVEL 65 IF NOT ERRORLEVEL 66 ECHO E 23%SDL% 00>>SDLSETUP.TXT
  156. IF ERRORLEVEL 45 IF NOT ERRORLEVEL 46 ECHO E 23%SDL% 01>>SDLSETUP.TXT
  157. goto ASorDS
  158. :SELECTw
  159. echo * * *
  160. echo File names can be listed in the sort order horizontally from left to
  161. echo right, or vertically from top to bottom.  Whichever default you choose,
  162. echo the W (for Width) option will toggle it.
  163. echo * * *
  164. sdl_get C "Press W for horizontal, V for Vertical, or cr for no change (V,w,cr): " WV~}
  165. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  166. IF ERRORLEVEL 87 IF NOT ERRORLEVEL 88 ECHO E 228 01>>SDLSETUP.TXT
  167. IF ERRORLEVEL 86 IF NOT ERRORLEVEL 87 ECHO E 228 00>>SDLSETUP.TXT
  168. GOTO MENU1
  169. :SELECT7
  170. sdl_get b
  171. ECHO * * *
  172. ECHO The default number of COLumns of files can be 2, 4 or automatic.
  173. ECHO The original default is automatic which trys to show all the files on
  174. ECHO one screen if possible.  You can override the default with a
  175. ECHO / option on the command line, or by making a new selection from
  176. ECHO the menu at any pause.
  177. ECHO * * *
  178. sdl_get C "Press the number of COLs you prefer, or 0 for automatic (0,2,4,cr): " 024~}
  179. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  180. IF NOT ERRORLEVEL 125 ECHO E 022C %GET%>>SDLSETUP.TXT
  181. GOTO MENU1
  182. :SELECT8
  183. sdl_get b
  184. ECHO * * *
  185. echo The type of disk can be selected with the 3 and 5 options; however, you
  186. echo may select the default that will be used when the option is omitted.
  187. ECHO This selection affects the width of disk labels printed only.  You may
  188. Echo want to select the size of labels for 3.5 inch disks from the next menu.
  189. echo * * *
  190. sdl_get c "Press 3 for 3.5 in. or 5 for 5.25 in. disk labels (5,3,cr): " 35~}
  191. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  192. IF ERRORLEVEL 51 IF NOT ERRORLEVEL 52 ECHO E 229 33>>SDLSETUP.TXT
  193. IF ERRORLEVEL 53 IF NOT ERRORLEVEL 54 ECHO E 229 00>>SDLSETUP.TXT
  194. GOTO MENU1
  195. :SELECT9
  196. sdl_get b
  197. ECHO * * *
  198. echo When adding up the bytes for the total of the files, SDL rounds up to the
  199. echo next kilobyte to provide an accurate indication of the amount of space
  200. echo the files would occupy on a 360KB or 720KB diskette.  1.2MB and 1.44MB
  201. echo diskettes use space in 0.5KB clusters, while hard disks may use 2KB, 4KB,
  202. echo or 8KB clusters.  The rounding factor may be selected on the command line
  203. echo by indicating /B for 0.5KB, /B1 for 1KB, /B2 for 2KB, etc.  You may select
  204. echo a new default by pressing the size of the cluster you want.
  205. echo * * *
  206. sdl_get c "Press 0 for 0.5KB or 1, 2, 4 or 8 KB clusters (1,2,4,8,0,cr): " 01248~}
  207. IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
  208. SET GET=
  209. IF ERRORLEVEL 48 IF NOT ERRORLEVEL 49 SET GET=01
  210. IF ERRORLEVEL 49 IF NOT ERRORLEVEL 50 SET GET=03
  211. IF ERRORLEVEL 50 IF NOT ERRORLEVEL 51 SET GET=07
  212. IF ERRORLEVEL 52 IF NOT ERRORLEVEL 53 SET GET=0F
  213. IF ERRORLEVEL 56 IF NOT ERRORLEVEL 57 SET GET=1F
  214. IF NOT . == .%GET% ECHO E 227 %GET%>>SDLSETUP.TXT
  215. GOTO MENU1
  216. :QUIT 
  217. pause
  218. REM SDLDEBUG will clean up any temporary files.
  219. sdldebug END
  220.